import { AnimationClip, AudioClip, Material, Prefab, SpriteAtlas, SpriteFrame, TextAsset, dragonBones } from "cc";
import { IPkg } from "../../../Framework/Scripts/Managers/ResManager";

export const EventMsgKes = {

    loading: 'loading',
    loadingEnd:'loadingEnd',
    hd_choujiang:'hd_choujiang',

    msgLoginRes:'msgLoginRes',
    msgGameHallRes:'msgGameHallRes',
    msgGetUserInfoRes:'msgGetUserInfoRes',
    msgGetUserRewardRes:'msgGetUserRewardRes',
    msgGetNewPlayerRes:'msgGetNewPlayerRes',
    msgUpdateUserInfoNotice:'msgUpdateUserInfoNotice',

    msgonGetHD_LoginRewardRes:'msgonGetHD_LoginRewardRes', //每周登录奖励--配置
    msgGetHD_LoginRewardGetRes:'GetHD_LoginRewardGetRes',//每周登录奖励--领取

    msgGetHD5_PrizeDrawListRes:'msgGetHD5_PrizeDrawListRes', //幸运抽奖配置返回
    msgGetHD5_PrizeDrawOptRes:'msgGetHD5_PrizeDrawOptRes', //幸运抽奖操作返回

    msgDailyChallengeCfgRes:'msgDailyChallengeCfgRes',//每日挑战--配置
    msgDailyChallengeRes:'msgDailyChallengeRes',//每日挑战--选择返回
    msgGameTzAddCountRes:'msgGameTzAddCountRes',//每日挑战---看视屏添加挑战次数
    msgGamePlayTzRes:'msgGamePlayTzRes',    //每日挑战---开始挑战返回
    
    msgGameSceneTzRes:'msgGameSceneTzRes', //每日挑战----游戏场景返回
    msgStartAnswerTzRes:'msgStartAnswerTzRes',//每日挑战---答题返回
    msgStartAnswerTzErrNotice:'msgStartAnswerTzErrNotice',// 每日挑战----用户通知正确结果
    msgStartAnswerTzTimeOutRes:'msgStartAnswerTzTimeOutRes', // 每日挑战用---户答题超时
    msgStartAnswerTzNextNotice:'msgStartAnswerTzNextNotice', //每日挑战---通知下一题
    msgStartAnswerTzEndNotice:'msgStartAnswerTzEndNotice',  //每日挑战---结算通知
    msgStartAnswerTzEndGetRewardRes:'msgStartAnswerTzEndGetRewardRes',//每日挑战---结算领取奖励
    msgStartAnswerTzFuHuoRes:"msgStartAnswerTzFuHuoRes",//每日挑战---复活

    msgAnswerRes:'msgAnswerRes',
    msgAnswerNextRes:'msgAnswerNextRes',

    msgThemeMatchRes:'msgThemeMatchRes', //主题赛 --配置
    msgThemeMatchPPRes:'msgThemeMatchPPRes',//主题赛 --开始匹配
    msgThemeMatchPPStopRes:'msgThemeMatchPPStopRes',//主题赛 --停止匹配
    msgIThemeMatchPPBroad:'msgIThemeMatchPPBroad',//主题赛 ---匹配到了的广播
    msgThemeMatchStarRes:'msgThemeMatchStarRes', //主题赛--开始游戏
    msgThemeMatchStarBroad:'msgThemeMatchStarBroad',//用户都准备了广播开始游戏
    msgThemeMatchJieSanBroad:'msgThemeMatchJieSanBroad',//玩家取消匹配，广播结果

    msgThemeMatchUserEnter:'msgThemeMatchUserEnter',//主题赛用户进入
    msgThemeMatchGameRes:'msgThemeMatchGameRes', //主题赛 --游戏场景广播
    msgGameAnswerEndBroadcast:'msgGameAnswerEndBroadcast',
    msgThemeMatchGameEndBroadcast:'msgThemeMatchGameEndBroadcast',
    msgThemeMatchGameAnswerBroadcast:'msgThemeMatchGameAnswerBroadcast', //主题赛--用户答题广播
    msgThemeMatchGameNextBroadcast:'msgThemeMatchGameNextBroadcast',
    msgThemeMatchGameNextGroupRes:'msgThemeMatchGameNextGroupRes',
    msgThemeMatchGameRecordRes:'msgThemeMatchGameRecordRes', //主题赛答题回顾，记录
    msgThemeMatchGetDwReward:'msgThemeMatchGetDwReward', //主题赛 --领取段位结算奖励
    msgThemeMatchExit:'msgThemeMatchExit',//主题赛--用户退出

    msgFriendJoinBroadcast:'msgFriendJoinBroadcast',
    msgFriendStartPKRes:'msgFriendStartPKRes',
    msgFriendJoinNotify:'msgFriendJoinNotify',
    msgFriendJoinOperateRes:'msgFriendJoinOperateRes',

   
}

export const AbNames = {
    GameLoading:'GameLoading',
    Common:'Common',
    GameHall:'GameHall',
    GamePlay:'GamePlay',
}

//启动页
export let LoadingPkg: IPkg = {
    abName: AbNames.GameLoading,
    urls: [
        {
            assetType: SpriteAtlas,
            url: 'Guis',
        },
        {
            assetType: Prefab,
            url: 'Prefabs',
        },
    ]
}

//公共
export let CommonPkg: IPkg = {
    abName: AbNames.Common,
    urls: [
        {
            assetType: SpriteFrame,
            url: 'Guis',
        },
        {
            assetType: Material,
            url: 'Mats',
        },
        {
            assetType: Prefab,
            url: 'Prefabs',
        },
        {
            assetType: AudioClip,
            url: 'Sounds',
        },
    ]
}

//大厅
export let HallPkg: IPkg = {
    abName: AbNames.GameHall,
    urls: [
        {
            assetType: AnimationClip,
            url: 'Animation',
        },
        {
            assetType: SpriteAtlas,
            url: 'Atals',
        },
        {
            assetType: SpriteFrame,
            url: 'Gui',
        },
        {
            assetType: Prefab,
            url: 'Prefabs',
        },
        {
            assetType: dragonBones.ActionData,
            url: 'DragonBones',
        },
    ]
}


//游戏
export let GamePkg: IPkg = {
    abName: AbNames.GamePlay,
    urls: [
        {
            assetType: SpriteAtlas,
            url: 'Atals',
        },
        {
            assetType: SpriteFrame,
            url: 'Gui',
        },
        {
            assetType: Prefab,
            url: 'Prefabs',
        },
        {
            assetType: TextAsset,
            url: 'Excle',
        },
    ]
}

